import Service from './$axios'
import { appName } from '../config';

// 1.0物料接收
export const materialHandover = (data) => {
    return Service({
        url: `${appName}/produceMange/materialHandover`,
        method: 'post',
        data
    })
}
// 1.1物料接收详情
export const materialHandoverDetail = (data) => {
    return Service({
        url: `${appName}/produceMange/materialHandoverDetail`,
        method: "post",
        data
    })
}
// 1.2领料单接收详细数据
export const materialHandoverAcceptDetail = (data) => {
    return Service({
        url: `${appName}/produceMange/materialHandoverAcceptDetail?${data}`,
        method: "get"
    })
}
// 1.3接收
export const updateAcceptDetail = (data) => {
    return Service({
        url: `${appName}/produceMange/updateAcceptDetail`,
        method: 'post',
        data
    })
}
// 1.4导出
export const handoverPrint = (data) => {
    return Service({
        url: `${appName}/produceMange/handoverPrint`,
        method: 'post',
        data,
        responseType: 'blob'
    })
}
// 1.5导出批次详细
export const exportBatchNumDesc = (data) => {
    return Service({
        url: `${appName}/produceMange/exportBatchNumDesc?${data}`,
        method: 'get',
        responseType: 'blob'
    })
}